<?php
/**
 * IWpResponse.php
 * 
 * This file contains the interface IWpResponse to be used for all types of responses
 * @author Robert Schmidt <robert@wildpack.de>
 * @version 1.0
 * @package wildpack
 * @subpackage web.response
 */


/**
 * The interface to be used for all types of responses
 * @author Robert Schmidt <robert@wildpack.de>
 * @version 1.0
 * @package wildpack
 * @subpackage web.response
 */
interface IWpResponse
{
	/**
	 * Set the response status
	 * @param string $status The status to set
	 */
	function setStatus($status);
	
	/**
	 * Add a header information (if response type supports headers)
	 * @param object $name The name of the header information
	 * @param object $value The information value
	 */
	function addHeader($name, $value);
	
	/**
	 * Write data to the response
	 * @param string $data The data to write to the response
	 */
	function write($data);
	
	/**
	 * Send response
	 */
	function flush();
}

/* End of file IWpResponse.php */
/* Location: ./wildpack/web/response/IWpResponse.php */ 